/* 
 * File:   repository_item.cpp
 * Author: jolo
 * 
 * Created on: 11. Oktober 2011, 12:48
 * Lincense: New BSD License (The BSD 2-Clause License)
 */

#include "repository_item.hpp"

#include <model/repository.hpp>

#include "project_group_item.hpp"
#include "periodic_system_group_item.hpp"

namespace gui
{

    repository_item::repository_item(model::repository_ptr p)
    : widgets::entity_item(p),
    r_(p)
    {
        project_group_item* pi = new project_group_item(p);
        periodic_system_group_item* psi = new periodic_system_group_item(p);
        
        appendRow(pi);
        appendRow(psi);
    }

    repository_item::~repository_item()
    {
    }
}
